// directives.js
export const permission = {
  mounted(el, binding) {
    const userPermissions = JSON.parse(localStorage.getItem('userPermissions')) || []
    if (!userPermissions.includes(binding.value)) {
      el.parentNode.removeChild(el);
      }
  },
};